/** 
 * 演示数据处理
 */
module.exports = () => {
  return (req, res, next) => {
    console.log(req.method)
    if (req.method == 'POST' || req.method == 'PUT' || req.method == 'DELETE') {
      if (req.path == '/admin/api/admin/login') {
        next()
      } else {
        return res.response(200, '演示环境,操作成功!', null)
      }
    } else {
      next()
    }
  }
}